package com.ruoyi.shop.api.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 汽油类型对象 che_petrol_oil
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
public class ChePetrolOil extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 加油站 */
    @Excel(name = "加油站")
    private Long shopId;

    /** 油类型 */
    @Excel(name = "油类型")
    private Long oilId;

    /** 油价 */
    @Excel(name = "油价")
    private BigDecimal price;

    private ChePetrol chePetrol;



    public ChePetrol getChePetrol() {
        return chePetrol;
    }

    public void setChePetrol(ChePetrol chePetrol) {
        this.chePetrol = chePetrol;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setOilId(Long oilId) 
    {
        this.oilId = oilId;
    }

    public Long getOilId() 
    {
        return oilId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shopId", getShopId())
            .append("oilId", getOilId())
            .append("price", getPrice())
            .toString();
    }
}
